package cm.aoplog.controller;

import cm.aoplog.annotations.OperateLog;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import static cm.aoplog.enums.OperateTypeEnum.EXPORT;

/**
 * @author: yxh
 * @Description: 日志controller
 * @Date: Created in 2022/9/13 13:52
 * @Modified By:
 */
@RestController
@RequestMapping("/log")
public class LogController {

    /**
     * 添加
     */
    @PostMapping("/add")
    @ApiOperation("创建通知公告")
    public void saveLog() {
    }

    /**
     *
     */
    @GetMapping("/export")
    @ApiOperation("测试")
    @OperateLog(type = EXPORT)
    public void export() {
    }
}
